﻿using Microsoft.AspNetCore.Authorization;

namespace VisionSurface.Web.Authorize
{
    /// <summary>
    /// 授权策略
    /// </summary>
    public class JwtTokenAuthorizationRequirement : IAuthorizationRequirement
    {
        public JwtTokenAuthorizationRequirement(string polices)
        {
            RequirePolices = polices.Split(',');
        }

        /// <summary>
        /// 需要的策略
        /// </summary>
        public string[] RequirePolices { get; set; }
    }
}